#include "npclogic.h"

CNPCLogic::CNPCLogic()
{

	m_pEntity = NULL;

	m_bEnemy = false;
	
	m_NextStateChange = 0;
	
}

void CNPCLogic::Think()
{
	
	if( SDL_GetTicks() > m_NextStateChange )
	{
		
		m_NextStateChange = SDL_GetTicks() + Util::random( 1000, 2000 );
		
		m_pEntity->SetPhysicsVel( Util::random( -100, 100 ), Util::random( -100, 100 ) );
		
		m_pEntity->ChangeFlipBasedOnVelocity();
		
	}
	
}